package com.itcam.reflect_.msb02;

/**
 * Author:Cammy.Wu
 * Date:2024-05-17
 * Description:
 */
/**
 *
 */
public class Student extends Person {

    // 属性：
    private int sno; //学号
    double height; //身高
    protected double weight;//体重
    public double score;//成绩

    // 方法：
    public String showInfo() {
        return "I'm bad student";
    }

    private void work() {
        System.out.println("i want to be a programmer!!!");
    }

    // 构造器：
    public Student() {
        System.out.println("空构造器");
    }

    private Student(int sno) {
        this.sno = sno;
    }

    Student(int sno, double weight) {
        this.sno = sno;
        this.weight = weight;
    }
}
